package com.by.service.impl;

import com.by.common.crud.BaseServiceImpl;
import com.by.dao.ProductDao;
import com.by.entity.Product;
import com.by.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl  extends BaseServiceImpl<Product, ProductDao> implements ProductService {
    @Autowired
    private ProductDao productDao;

    @Override
    public List<Map> queryProductSort(int parentId) {
        return productDao.queryProductSort(parentId);
    }
}
